from django import forms
from .models import User, Gender

class UserForm(forms.ModelForm):
    class Meta:
        model = User
        fields = ['name', 'mobile', 'is_del', 'sex']
        # widgets = {
        #     "is_del": forms.ChoiceField(widget=forms.RadioSelect)
        # }
        


class GenderForm(forms.ModelForm):
    class Meta:
        model = Gender
        fields = ['gender']
        widgets = {
            'gender': forms.RadioSelect,
        }